#import "ButterflyQuestCell.h"


@implementation ButterflyQuestCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self lushIgniteConfigViews];
	}
	return self;
}

- (void)setDreamThistleUnderwater:(ButterflyQuestModel *)dreamThistleUnderwater {
	_dreamThistleUnderwater = dreamThistleUnderwater;

	//: 配置cell的UI

[self.elevateApprehensionImageView sd_setImageWithURL:[NSURL URLWithString:dreamThistleUnderwater.echoQuenchArcane.stringValue] placeholderImage:nil];

}
//: charismaKaleidoscopeBalance 的点击事件
- (void)action_0 {}

//: quakeDelightful 的点击事件
- (void)action_2 {}

//: gritOpulent 的点击事件
- (void)action_5 {}

- (UITextField *)waffleTextField {
	if (!_waffleTextField) {
	
        _waffleTextField = [[UITextField alloc] initWithFrame:CGRectZero];
        _waffleTextField.frame = CGRectMake(27, 45, 100, 159);
	}
	return _waffleTextField;
}

- (void)lushIgniteConfigViews {

    //: 描述_0
    UIButton *charismaKaleidoscopeBalance = [UIButton new];
    UIImage *xenophobe = [UIImage imageNamed:@"images/icon_0.png"];
    if (xenophobe) {
	    [charismaKaleidoscopeBalance setImage:xenophobe forState:UIControlStateNormal];
    }
    [charismaKaleidoscopeBalance setTitle:@"button_0" forState:UIControlStateNormal];
    [charismaKaleidoscopeBalance setTitle:@"button_selected_0" forState:UIControlStateSelected];
    [charismaKaleidoscopeBalance setTitleColor:[UIColor colorWithRed:222/255.0 green:86/255.0 blue:222/255.0 alpha:0.8] forState:UIControlStateNormal];
    [charismaKaleidoscopeBalance setTitleColor:[UIColor colorWithRed:8/255.0 green:211/255.0 blue:169/255.0 alpha:0.9] forState:UIControlStateSelected];
    [charismaKaleidoscopeBalance addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
    self.mingleBrightenBtn = charismaKaleidoscopeBalance;
    [self.contentView addSubview:charismaKaleidoscopeBalance];
	[self.mingleBrightenBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(159);
		make.height.mas_equalTo(144);
		make.top.equalTo(@(10));
	}];


    //: 描述_1
    self.volatileJourneyXenophileImageView = [UIImageView new];
    self.volatileJourneyXenophileImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.volatileJourneyXenophileImageView.clipsToBounds = YES;
    self.volatileJourneyXenophileImageView.layer.cornerRadius = 20;
    self.volatileJourneyXenophileImageView.layer.masksToBounds = YES;
    UIImage *brilliance = [UIImage imageNamed:@"images/image_1.png"];
    if (brilliance) {
	    self.volatileJourneyXenophileImageView.image = brilliance;
    }
    [self.contentView addSubview:self.volatileJourneyXenophileImageView];
	[self.volatileJourneyXenophileImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(142);
		make.height.mas_equalTo(83);
		make.bottom.equalTo(@(15));
	}];


    //: 描述_2
    UIButton *quakeDelightful = [[UIButton alloc] initWithFrame:CGRectZero];
    quakeDelightful.frame = CGRectMake(38, 25, 200, 71);
    UIImage *nirvana = [UIImage imageNamed:@"images/icon_2.png"];
    if (nirvana) {
	    [quakeDelightful setImage:nirvana forState:UIControlStateNormal];
    }
    [quakeDelightful setTitle:@"button_2" forState:UIControlStateNormal];
    [quakeDelightful setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [quakeDelightful setTitleColor:[UIColor colorWithRed:212/255.0 green:231/255.0 blue:108/255.0 alpha:0.9] forState:UIControlStateNormal];
    [quakeDelightful setTitleColor:[UIColor colorWithRed:104/255.0 green:64/255.0 blue:146/255.0 alpha:0.8] forState:UIControlStateSelected];
    [quakeDelightful addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    self.whimsyBtn = quakeDelightful;
    [self.contentView addSubview:quakeDelightful];


    //: 描述_3
    self.elevateApprehensionImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
    self.elevateApprehensionImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.elevateApprehensionImageView.clipsToBounds = YES;
    self.elevateApprehensionImageView.layer.cornerRadius = 3;
    self.elevateApprehensionImageView.layer.masksToBounds = YES;
    self.elevateApprehensionImageView.frame = CGRectMake(38, 34, 124, 150);
    UIImage *nostalgiaInvincibleThrive = [UIImage imageNamed:@"images/image_3.png"];
    if (nostalgiaInvincibleThrive) {
	    self.elevateApprehensionImageView.image = nostalgiaInvincibleThrive;
    }
    [self.contentView addSubview:self.elevateApprehensionImageView];


    //: 描述_4
    UITextView *nomadAppleTranquil = [[UITextView alloc] init];
    nomadAppleTranquil.size = CGSizeMake(119, 49);
    nomadAppleTranquil.left = 28;
    nomadAppleTranquil.top = 43;
    self.kiteFableTextView = nomadAppleTranquil;
    [self.contentView addSubview:nomadAppleTranquil];


    //: 描述_5
    UIButton *gritOpulent = [[UIButton alloc] initWithFrame:CGRectZero];
    UIImage *hoverZeal = [UIImage imageNamed:@"images/icon_5.png"];
    if (hoverZeal) {
	    [gritOpulent setImage:hoverZeal forState:UIControlStateNormal];
    }
    [gritOpulent setTitle:@"button_5" forState:UIControlStateNormal];
    [gritOpulent setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [gritOpulent setTitleColor:[UIColor colorWithRed:159/255.0 green:196/255.0 blue:76/255.0 alpha:0.7] forState:UIControlStateNormal];
    [gritOpulent setTitleColor:[UIColor colorWithRed:205/255.0 green:205/255.0 blue:65/255.0 alpha:0.6] forState:UIControlStateSelected];
    [gritOpulent addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    self.jeopardyJourneyNostalgiaBtn = gritOpulent;
    [self.contentView addSubview:gritOpulent];
	[self.jeopardyJourneyNostalgiaBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(96);
		make.height.mas_equalTo(129);
		make.bottom.equalTo(@(29));
	}];

	//: 描述_6
	[self.contentView addSubview:self.waffleTextField];
}


@end